﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using QL_KhachSan.App_Code.OBJ;

namespace QL_KhachSan.App_Code.DAL
{
    class DAL_HoadonDV
    {
        db_Connection dbcon;
        public DAL_HoadonDV() {
            dbcon = new db_Connection();
        }
        public void add_hoadondv(HoaDon_DV dv) {
            SqlParameter[] p = new SqlParameter[6];
            p[0] = new SqlParameter("@mahddv", dv._mahddv);
            p[1] = new SqlParameter("@tendv", dv._tendv);
            p[2] = new SqlParameter("@dongia", dv._dongiadv);
            p[3] = new SqlParameter("@thoigian", dv._thoigian);
            p[4] = new SqlParameter("@tiendv", dv._tiendv);
            p[5] = new SqlParameter("@makh", dv._makh);
            dbcon.exe_proc_para("add_hoadondv", p);
        }
    }
}
